#!/usr/bin/env python

def linear_search(src, target):
    for index, val in enumerate(src):
        if val == target:
            return index

    return -1

if __name__ == "__main__":
    import random

    nums = [random.randint(-100, 100) for _ in range(100)]

    print(nums)
    print(linear_search(nums, 50))